package dbaproj.pojo;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Mufaj {
  private long id;
  private String nev;
  
	public Mufaj(long id, String nev) {
		this.id = id;
		this.nev = nev;
	}

	public Mufaj(ResultSet rs) {
		try {
			id = rs.getLong(1);
			nev = rs.getString(2);
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}

	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getNev() {
		return nev;
	}
	public void setNev(String nev) {
		this.nev = nev;
	}
}
